<?php
class TDataTableContratoVagas extends TDataTable 
{    
    public function __construct($contratoid, $options = array())
    {
        $columns = array();
        $key = 'cargoid';        
        $criterio = array();
        $criterio['orderBy'] ='cargo';
        $criterio['precondicao'] = "contratoid = $contratoid";
        
        parent::__construct(new ViewVagasContrato(), $key, $criterio, $options, $columns);
        $this->addColumnsData(array('cargo','total'));
    }    
}